<?php
  
  $d = $_REQUEST['d1'];
  // print( "sent " . $d );
  
  $o = json_decode($d);
  
  //print $o;
  //print $o->{'car'};

/*
 foreach( $o->carsy as $cars  ) {
   echo "$cars->car\n" . "$cars->date\n";
 
 }
*/
  foreach( $o->students as $student ) {
    echo $student->name;
  }

/*
  foreach($o as $key => $value ) {
    print($key);
    print($key[$value]);
    foreach( $key[$value] as $key2 => $value2 ) {
      print($key2);
    }
  }
*/
?>
